package org.micode.libs.dao.base;

import org.apache.ibatis.annotations.Param;
import org.micode.common.domain.base.BaseEntity;

/**
 * 实体类的读取器基类
 */
public interface BaseEditDao<T extends BaseEntity> extends BaseInsertDao<T> {

    int update(T t);

    int updateByExample(@Param("update") T update, @Param("example") T example);

    int delete(Object key);

    int deleteByKey(@Param("t") T t);

    int deleteByKeys(@Param("keys") String keys);

    int deleteByExample(@Param("example") T example);

}
